package com.ruoyi.pay.manager.service.impl;

import java.util.List;

import com.basic.service.impl.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.ruoyi.pay.manager.mapper.PayManagerServiceMapper;
import com.ruoyi.pay.manager.domain.PayManagerService;
import com.ruoyi.pay.manager.service.IPayManagerServiceService;

/**
 * 订单-单个商品服务信息Service业务层处理
 * 
 * @author 王强
 * @date 2023-12-22
 */
@Service
public class PayManagerServiceServiceImpl extends BaseServiceImpl<Long, PayManagerService> implements IPayManagerServiceService 
{
    public PayManagerServiceServiceImpl(PayManagerServiceMapper baseMapper) {
		super(baseMapper);
		// TODO Auto-generated constructor stub
	}


    /**
     * 查询订单-单个商品服务信息
     * 
     * @param id 订单-单个商品服务信息主键
     * @return 订单-单个商品服务信息
     */
    @Override
    public PayManagerService selectById(Integer id)
    {
        return baseMapper.selectById(id);
    }

    /**
     * 查询订单-单个商品服务信息列表
     * 
     * @param payManagerService 订单-单个商品服务信息
     * @return 订单-单个商品服务信息
     */
    @Override
    public List<PayManagerService> selectList(PayManagerService payManagerService)
    {
        return baseMapper.selectList(payManagerService);
    }

    /**
     * 新增订单-单个商品服务信息
     * 
     * @param payManagerService 订单-单个商品服务信息
     * @return 结果
     */
    @Override
    public int insert(PayManagerService payManagerService)
    {
        return baseMapper.insert(payManagerService);
    }

    /**
     * 修改订单-单个商品服务信息
     * 
     * @param payManagerService 订单-单个商品服务信息
     * @return 结果
     */
    @Override
    public int update(PayManagerService payManagerService)
    {
        return baseMapper.update(payManagerService);
    }

    /**
     * 批量删除订单-单个商品服务信息
     * 
     * @param ids 需要删除的订单-单个商品服务信息主键
     * @return 结果
     */
    @Override
    public int deleteByIds(Integer[] ids)
    {
        return baseMapper.deleteByIds(ids);
    }

    /**
     * 删除订单-单个商品服务信息信息
     * 
     * @param id 订单-单个商品服务信息主键
     * @return 结果
     */
    @Override
    public int deleteById(Integer id)
    {
        return baseMapper.deleteById(id);
    }
    
    
    
    @Override
    @Transactional(propagation = Propagation.MANDATORY)
	public <VO> int updatePayStatus(VO payManager) {
		// TODO Auto-generated method stub
		return super.updatePayStatus(payManager);
	}


	/**
     * 查询 一对多
     */
	@Override
	public List<PayManagerService> selectListById(int id) {
		return this.baseMapper.selectListById(id);
	}
}
